<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libxlsxwriter: rich_strings.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libxlsxwriter
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">rich_strings.c</div>  </div>
</div><!--header-->
<div class="contents">
<table width="600">
<tr>
<td><a class="el" href="hyperlinks_8c-example.html">&lt;&lt; hyperlinks.c</a> </td><td align="right"><a class="el" href="array_formula_8c-example.html">array_formula.c &gt;&gt;</a>  </td></tr>
</table>
<p>Example of writing "rich" multi-format strings to a worksheet.</p>
<div class="image">
<img src="rich_strings.png" alt=""/>
</div>
<div class="fragment"><div class="line"><span class="comment">/*</span></div>
<div class="line"><span class="comment"> * An example of using the libxlsxwriter library to write some &quot;rich strings&quot;,</span></div>
<div class="line"><span class="comment"> * i.e., strings with multiple formats.</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * Copyright 2014-2018, John McNamara, jmcnamara@cpan.org</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> */</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &quot;xlsxwriter.h&quot;</span></div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">int</span> main() {</div>
<div class="line"> </div>
<div class="line">    <a name="_a0"></a><a class="code" href="structlxw__workbook.html">lxw_workbook</a>  *workbook  = <a name="a1"></a><a class="code" href="workbook_8h.html#a1cf96608a23ee4eb0e8467c15240d00b">workbook_new</a>(<span class="stringliteral">&quot;rich_strings.xlsx&quot;</span>);</div>
<div class="line">    <a name="_a2"></a><a class="code" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet = <a name="a3"></a><a class="code" href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a>(workbook, NULL);</div>
<div class="line"> </div>
<div class="line">    <span class="comment">/* Set up some formats to use. */</span></div>
<div class="line">    <a name="_a4"></a><a class="code" href="structlxw__format.html">lxw_format</a> *bold = <a name="a5"></a><a class="code" href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a>(workbook);</div>
<div class="line">    <a name="a6"></a><a class="code" href="format_8h.html#a85e1b0baf44b445b65894e48722aec14">format_set_bold</a>(bold);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__format.html">lxw_format</a> *italic = <a class="code" href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a>(workbook);</div>
<div class="line">    <a name="a7"></a><a class="code" href="format_8h.html#a19cbd7c34692eb7fb35a7411432d836e">format_set_italic</a>(italic);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__format.html">lxw_format</a> *red = <a class="code" href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a>(workbook);</div>
<div class="line">    <a name="a8"></a><a class="code" href="format_8h.html#a61981b2080bfe6381ede5358ee05b05c">format_set_font_color</a>(red, <a name="a9"></a><a class="code" href="format_8h.html#abeafc6e8222ba9fcfd4f2c2f4e9ea38baedd7412491d9f34fc5f947ada9d196ec">LXW_COLOR_RED</a>);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__format.html">lxw_format</a> *blue = <a class="code" href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a>(workbook);</div>
<div class="line">    <a class="code" href="format_8h.html#a61981b2080bfe6381ede5358ee05b05c">format_set_font_color</a>(blue, <a name="a10"></a><a class="code" href="format_8h.html#abeafc6e8222ba9fcfd4f2c2f4e9ea38ba81f6ca72c0925fe665263547614ebb37">LXW_COLOR_BLUE</a>);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__format.html">lxw_format</a> *center = <a class="code" href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a>(workbook);</div>
<div class="line">    <a name="a11"></a><a class="code" href="format_8h.html#a189c83d1f21b01937f1f730720c33d13">format_set_align</a>(center, <a name="a12"></a><a class="code" href="format_8h.html#adeeb0d70c7c873422d642323e7e1ecf5a9899936ef3a43721b394b9b5d2314496">LXW_ALIGN_CENTER</a>);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__format.html">lxw_format</a> *superscript = <a class="code" href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a>(workbook);</div>
<div class="line">    <a name="a13"></a><a class="code" href="format_8h.html#a471ca432e429505c79982ca5aecd1db0">format_set_font_script</a>(superscript, <a name="a14"></a><a class="code" href="format_8h.html#a0ff8fd761893f60fddbd7f1cab4ac75aa191621e73f0f2837147d221ed5f06034">LXW_FONT_SUPERSCRIPT</a>);</div>
<div class="line"> </div>
<div class="line">    <span class="comment">/* Make the first column wider for clarity. */</span></div>
<div class="line">    <a name="a15"></a><a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet, 0, 0, 30, NULL);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <span class="comment">/*</span></div>
<div class="line"><span class="comment">     * Create and write some rich strings with multiple formats.</span></div>
<div class="line"><span class="comment">     */</span></div>
<div class="line"> </div>
<div class="line">    <span class="comment">/* Example 1. Some bold and italic in the same string. */</span></div>
<div class="line">    <a name="_a16"></a><a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment11 = {.<a name="a17"></a><a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = NULL,   .string = <span class="stringliteral">&quot;This is &quot;</span>     };</div>
<div class="line">    <a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment12 = {.<a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = bold,   .string = <span class="stringliteral">&quot;bold&quot;</span>         };</div>
<div class="line">    <a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment13 = {.<a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = NULL,   .string = <span class="stringliteral">&quot; and this is &quot;</span>};</div>
<div class="line">    <a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment14 = {.<a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = italic, .string = <span class="stringliteral">&quot;italic&quot;</span>       };</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> *rich_string1[] = {&amp;fragment11, &amp;fragment12,</div>
<div class="line">                                             &amp;fragment13, &amp;fragment14, NULL};</div>
<div class="line"> </div>
<div class="line">    <a name="a18"></a><a class="code" href="worksheet_8h.html#a62bf44845ce9dcc505bf228999db5afa">worksheet_write_rich_string</a>(worksheet, <a name="a19"></a><a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;A1&quot;</span>), rich_string1, NULL);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <span class="comment">/* Example 2. Some red and blue coloring in the same string. */</span></div>
<div class="line">    <a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment21 = {.<a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = NULL, .string = <span class="stringliteral">&quot;This is &quot;</span>     };</div>
<div class="line">    <a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment22 = {.<a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = red,  .string = <span class="stringliteral">&quot;red&quot;</span>          };</div>
<div class="line">    <a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment23 = {.<a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = NULL, .string = <span class="stringliteral">&quot; and this is &quot;</span>};</div>
<div class="line">    <a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment24 = {.<a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = blue, .string = <span class="stringliteral">&quot;blue&quot;</span>         };</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> *rich_string2[] = {&amp;fragment21, &amp;fragment22,</div>
<div class="line">                                             &amp;fragment23, &amp;fragment24, NULL};</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#a62bf44845ce9dcc505bf228999db5afa">worksheet_write_rich_string</a>(worksheet, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;A3&quot;</span>), rich_string2, NULL);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <span class="comment">/* Example 3. A rich string plus cell formatting. */</span></div>
<div class="line">    <a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment31 = {.<a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = NULL, .string = <span class="stringliteral">&quot;Some &quot;</span>    };</div>
<div class="line">    <a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment32 = {.<a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = bold, .string = <span class="stringliteral">&quot;bold text&quot;</span>};</div>
<div class="line">    <a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment33 = {.<a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = NULL, .string = <span class="stringliteral">&quot; centered&quot;</span>};</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> *rich_string3[] = {&amp;fragment31, &amp;fragment32,</div>
<div class="line">                                             &amp;fragment33, NULL};</div>
<div class="line"> </div>
<div class="line">    <span class="comment">/* Note that this example also has a &quot;center&quot; cell format. */</span></div>
<div class="line">    <a class="code" href="worksheet_8h.html#a62bf44845ce9dcc505bf228999db5afa">worksheet_write_rich_string</a>(worksheet, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;A5&quot;</span>), rich_string3, center);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <span class="comment">/* Example 4. A math example with a superscript. */</span></div>
<div class="line">    <a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment41 = {.<a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = italic,      .string = <span class="stringliteral">&quot;j =k&quot;</span> };</div>
<div class="line">    <a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment42 = {.<a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = superscript, .string = <span class="stringliteral">&quot;(n-1)&quot;</span>};</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> *rich_string4[] = {&amp;fragment41, &amp;fragment42, NULL};</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#a62bf44845ce9dcc505bf228999db5afa">worksheet_write_rich_string</a>(worksheet, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;A7&quot;</span>), rich_string4, center);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a name="a20"></a><a class="code" href="workbook_8h.html#ad9e7aeebc0fd43562db5bcd527b2ee5e">workbook_close</a>(workbook);</div>
<div class="line"> </div>
<div class="line">    <span class="keywordflow">return</span> 0;</div>
<div class="line">}</div>
</div><!-- fragment --> </div><!-- contents -->
<div class="ttc" id="aworkbook_8h_html_ad9e7aeebc0fd43562db5bcd527b2ee5e"><div class="ttname"><a href="workbook_8h.html#ad9e7aeebc0fd43562db5bcd527b2ee5e">workbook_close</a></div><div class="ttdeci">lxw_error workbook_close(lxw_workbook *workbook)</div><div class="ttdoc">Close the Workbook object and write the XLSX file.</div></div>
<div class="ttc" id="astructlxw__rich__string__tuple_html"><div class="ttname"><a href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a></div><div class="ttdoc">Struct to represent a rich string format/string pair.</div><div class="ttdef"><b>Definition:</b> worksheet.h:1586</div></div>
<div class="ttc" id="aformat_8h_html_a471ca432e429505c79982ca5aecd1db0"><div class="ttname"><a href="format_8h.html#a471ca432e429505c79982ca5aecd1db0">format_set_font_script</a></div><div class="ttdeci">void format_set_font_script(lxw_format *format, uint8_t style)</div><div class="ttdoc">Set the superscript/subscript property of the font.</div></div>
<div class="ttc" id="aformat_8h_html_a19cbd7c34692eb7fb35a7411432d836e"><div class="ttname"><a href="format_8h.html#a19cbd7c34692eb7fb35a7411432d836e">format_set_italic</a></div><div class="ttdeci">void format_set_italic(lxw_format *format)</div><div class="ttdoc">Turn on italic for the format font.</div></div>
<div class="ttc" id="aformat_8h_html_a189c83d1f21b01937f1f730720c33d13"><div class="ttname"><a href="format_8h.html#a189c83d1f21b01937f1f730720c33d13">format_set_align</a></div><div class="ttdeci">void format_set_align(lxw_format *format, uint8_t alignment)</div><div class="ttdoc">Set the alignment for data in the cell.</div></div>
<div class="ttc" id="aworkbook_8h_html_a1cf96608a23ee4eb0e8467c15240d00b"><div class="ttname"><a href="workbook_8h.html#a1cf96608a23ee4eb0e8467c15240d00b">workbook_new</a></div><div class="ttdeci">lxw_workbook * workbook_new(const char *filename)</div><div class="ttdoc">Create a new workbook object.</div></div>
<div class="ttc" id="aformat_8h_html_a0ff8fd761893f60fddbd7f1cab4ac75aa191621e73f0f2837147d221ed5f06034"><div class="ttname"><a href="format_8h.html#a0ff8fd761893f60fddbd7f1cab4ac75aa191621e73f0f2837147d221ed5f06034">LXW_FONT_SUPERSCRIPT</a></div><div class="ttdeci">@ LXW_FONT_SUPERSCRIPT</div><div class="ttdef"><b>Definition:</b> format.h:114</div></div>
<div class="ttc" id="astructlxw__rich__string__tuple_html_a331030005bc187f49a855a7ccb749052"><div class="ttname"><a href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">lxw_rich_string_tuple::format</a></div><div class="ttdeci">lxw_format * format</div><div class="ttdef"><b>Definition:</b> worksheet.h:1590</div></div>
<div class="ttc" id="aformat_8h_html_a85e1b0baf44b445b65894e48722aec14"><div class="ttname"><a href="format_8h.html#a85e1b0baf44b445b65894e48722aec14">format_set_bold</a></div><div class="ttdeci">void format_set_bold(lxw_format *format)</div><div class="ttdoc">Turn on bold for the format font.</div></div>
<div class="ttc" id="astructlxw__worksheet_html"><div class="ttname"><a href="structlxw__worksheet.html">lxw_worksheet</a></div><div class="ttdoc">Struct to represent an Excel worksheet.</div><div class="ttdef"><b>Definition:</b> worksheet.h:1603</div></div>
<div class="ttc" id="astructlxw__format_html"><div class="ttname"><a href="structlxw__format.html">lxw_format</a></div><div class="ttdoc">Struct to represent the formatting properties of an Excel format.</div><div class="ttdef"><b>Definition:</b> format.h:358</div></div>
<div class="ttc" id="aformat_8h_html_adeeb0d70c7c873422d642323e7e1ecf5a9899936ef3a43721b394b9b5d2314496"><div class="ttname"><a href="format_8h.html#adeeb0d70c7c873422d642323e7e1ecf5a9899936ef3a43721b394b9b5d2314496">LXW_ALIGN_CENTER</a></div><div class="ttdeci">@ LXW_ALIGN_CENTER</div><div class="ttdef"><b>Definition:</b> format.h:129</div></div>
<div class="ttc" id="astructlxw__workbook_html"><div class="ttname"><a href="structlxw__workbook.html">lxw_workbook</a></div><div class="ttdoc">Struct to represent an Excel workbook.</div><div class="ttdef"><b>Definition:</b> workbook.h:273</div></div>
<div class="ttc" id="aformat_8h_html_abeafc6e8222ba9fcfd4f2c2f4e9ea38ba81f6ca72c0925fe665263547614ebb37"><div class="ttname"><a href="format_8h.html#abeafc6e8222ba9fcfd4f2c2f4e9ea38ba81f6ca72c0925fe665263547614ebb37">LXW_COLOR_BLUE</a></div><div class="ttdeci">@ LXW_COLOR_BLUE</div><div class="ttdef"><b>Definition:</b> format.h:184</div></div>
<div class="ttc" id="aformat_8h_html_abeafc6e8222ba9fcfd4f2c2f4e9ea38baedd7412491d9f34fc5f947ada9d196ec"><div class="ttname"><a href="format_8h.html#abeafc6e8222ba9fcfd4f2c2f4e9ea38baedd7412491d9f34fc5f947ada9d196ec">LXW_COLOR_RED</a></div><div class="ttdeci">@ LXW_COLOR_RED</div><div class="ttdef"><b>Definition:</b> format.h:217</div></div>
<div class="ttc" id="aformat_8h_html_a61981b2080bfe6381ede5358ee05b05c"><div class="ttname"><a href="format_8h.html#a61981b2080bfe6381ede5358ee05b05c">format_set_font_color</a></div><div class="ttdeci">void format_set_font_color(lxw_format *format, lxw_color_t color)</div><div class="ttdoc">Set the color of the font used in the cell.</div></div>
<div class="ttc" id="aworksheet_8h_html_a62bf44845ce9dcc505bf228999db5afa"><div class="ttname"><a href="worksheet_8h.html#a62bf44845ce9dcc505bf228999db5afa">worksheet_write_rich_string</a></div><div class="ttdeci">lxw_error worksheet_write_rich_string(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, lxw_rich_string_tuple *rich_string[], lxw_format *format)</div><div class="ttdoc">Write a &quot;Rich&quot; multi-format string to a worksheet cell.</div></div>
<div class="ttc" id="aworksheet_8h_html_a9656e4e05d3787eee6b3e4d8e82d9b7f"><div class="ttname"><a href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a></div><div class="ttdeci">lxw_error worksheet_set_column(lxw_worksheet *worksheet, lxw_col_t first_col, lxw_col_t last_col, double width, lxw_format *format)</div><div class="ttdoc">Set the properties for one or more columns of cells.</div></div>
<div class="ttc" id="autility_8h_html_ad510ac6df573d23203374e24dba373d2"><div class="ttname"><a href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a></div><div class="ttdeci">#define CELL(cell)</div><div class="ttdoc">Convert an Excel A1 cell string into a (row, col) pair.</div><div class="ttdef"><b>Definition:</b> utility.h:45</div></div>
<div class="ttc" id="aworkbook_8h_html_a81d456b4f65a464e78e4a0030ecc3c2e"><div class="ttname"><a href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a></div><div class="ttdeci">lxw_worksheet * workbook_add_worksheet(lxw_workbook *workbook, const char *sheetname)</div><div class="ttdoc">Add a new worksheet to a workbook.</div></div>
<div class="ttc" id="aworkbook_8h_html_a279a5d7075d09a3931aae9782afede33"><div class="ttname"><a href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a></div><div class="ttdeci">lxw_format * workbook_add_format(lxw_workbook *workbook)</div><div class="ttdoc">Create a new Format object to formats cells in worksheets.</div></div>
<!-- HTML footer for doxygen 1.8.20-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Copyright 2014-2020 John McNamara.
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
